package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.BrandDao;
import com.ericom.model.Brand;
@Repository("brandDao")
public class BrandDaoHibernate extends GenericDaoHibernate<Brand, Long>
		implements BrandDao {

	public BrandDaoHibernate() {
		super(Brand.class);

	}

	public List<Brand> findByName(String name) {

		return this.getHibernateTemplate()
				.find("from Brand where name=?", name);
	}

}
